-- GENERATED SPELL FOR [Sethekk Talon Lord] --


function spell0_18321(pUnit, Event) --@Avenger\'s Shield,n/a--
pUnit:FullCastSpellOnTarget(32674,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18321', 7000, 1)
end

function spell1_18321(pUnit, Event) --@Talon of Justice,n/a--
pUnit:FullCastSpellOnTarget(32654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18321', 5344, 1)
end

function Sorts_18321(pUnit, Event)
local choix_sorts_18321 = math.random(0, 1)
if choix_sorts_18321 == 0 then
pUnit:RegisterEvent('spell0_18321', 1, 1)
end
if choix_sorts_18321 == 1 then
pUnit:RegisterEvent('spell1_18321', 1, 1)
end
end

function mob18321_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18321', math.random(1500, 3000), 1)
end

function mob18321_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18321_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18321_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18321, 1, 'mob18321_Action')
RegisterUnitEvent(18321, 2, 'mob18321_Leave')
RegisterUnitEvent(18321, 3, 'mob18321_Kill')
RegisterUnitEvent(18321, 4, 'mob18321_Die')
